<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html xmlns:c="http://java.sun.com/jsp/jstl/core">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Angaben</title>
<link href="../../CSS/main.css" rel="stylesheet" type="text/css">
<link href="../../CSS/menu.css" rel="stylesheet" type="text/css">

<link rel="stylesheet"
	href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />

<script type="text/javascript" src="../../JS/jquery.js"></script>
<script type="text/javascript"
	src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="../../JS/UI.js"></script>

<script src="../../JS/jquery.validationEngine-de.js" type="text/javascript"
	charset="utf-8"></script>
<script src="../../JS/jquery.validationEngine.js" type="text/javascript"
	charset="utf-8"></script>

<link rel="stylesheet" href="../../CSS/validationEngine.jquery.css"
	type="text/css" />

<c:if test="${empty sessionScope.id}">
	<c:redirect url="../../index.jsp?error=3" />
</c:if>

<jsp:useBean id="lebensmittel" class="database.DbLebensmittelEinlagern"
	scope="session" />

</head>
<body>

	<div id="aussenwrapper">

		<div id="innenwrapper">

			<!-- HEADER -->
			<div id="header">
				<div id="logo">
					<img src="../../Image/Final.png" height="150" />


				</div>
				<div id="menu">
					<div class="inhalt">
						<ul>
							<li><a href="../startseite.jsp">Home</a></li>
							<li id="current"><a href="ean_eingabe_ajax.jsp">Eingabe</a></li>
							<li><a href="../konto.jsp">Mein Konto</a></li>
						</ul>
					</div>
				</div>
				<jsp:include page="eingabe_statusbox.jsp"></jsp:include>
			</div>


			<!--  Content-Bereich -->
			<div id="content">
				<div id="wrapper1">
					<div id="wrapper2">
						<div id="wrapper3">
							<form action="../../Beans/lebensmittel_einlagern_bean.jsp"
								method="post" id="angaben">
								
									<script>
				$(document).ready(function(){
   				 $("#angaben").validationEngine();
   				});
					</script>

								<div id="leftbox">

									<table>
										<tr>
											<td>EAN:</td>
											<td><c:out value="${lebensmittel.ean}" /></td>
										</tr>
										<tr>
											<td>Name:</td>
											<td><c:out value="${lebensmittel.name}" /></td>

										</tr>
										<tr>
											<td>Kategorie:</td>
											<td><c:out value="${lebensmittel.kategorie}" /></td>

										</tr>
										<tr>
											<td>Marke:</td>
											<td><c:out value="${lebensmittel.marke}" /></td>
										</tr>
									</table>


								</div>
								<div id="middle">
									<table>
										<tr>
											<td>Menge:</td>
											<td><input class="validate[required, custom[onlyNumber]]" name="menge" type="text" placeholder="Menge"
												></td>
											<td><c:out value="${lebensmittel.einheit}" /></td>
										</tr>
										<tr>
											<td>Mindestbestand:</td>
											<td><input class="validate[required, custom[onlyNumber]]" name="mindestbestand" type="text"
												placeholder="Mindestbestand"></td>
												<td><c:out value="${lebensmittel.einheit}" /></td>
										</tr>
										<tr>
											<td>Ablaufdatum:</td>
											<td><input class="validate[required]" name="mhd" type="text"
												placeholder="Ablaufdatum" id="datepicker"></td>
										</tr>
								</table>


								</div>
								<!--Ende #middle-->
								<div id="rightbox">
									<p>
										<input type="submit" value="Bestätigen" class="button" />
									</p>
									<p>
										<button onclick="location.href = 'ean_eingabe_ajax.jsp';"
											class="button">Zurück</button>
									</p>
								</div>
								<!--Ende #rechtsbox-->

								<div style="clear: left;"></div>
							</form>
						</div>
						<!--Ende #wrapper3-->
					</div>
					<!--Ende #wrapper2-->
				</div>
				<!--Ende #wrapper1-->
			</div>
			<!--Ende content-->

			<span style="clear: both;"></span>

		</div>
		<!--Ende innenwrapper-->

		<jsp:include page="eingabe_footernavi.jsp"></jsp:include>
		<!--Ende footer-->

	</div>
	<!--Ende aussenwrapper-->
</body>
</html>